package com.itheima.api.date.demo01;

import java.util.Date;

/**
 * Date用来表示时间，在java.util包中
 */
public class DateDemo01 {

    public static void main(String[] args) {

        Date date = new Date();
        System.out.println(date);

        long time = date.getTime();
        System.out.println(time);

        System.out.println("-------------------------------");

        Date date1 = new Date();
        System.out.println(date1);

        System.out.println("-------------------------------");

        Date date2 = new Date();
        System.out.println(date2);

        date2.setTime(1566900864066L);
        System.out.println(date2);

    }

}
